All Questions
2 questions
0votes
2answers
421views
Throwing custom exceptions in library: do I throw concrete ones or their superclass?
I am designing a library that abstracts a typical CRUD http service named FooService. In this library I am throwing different exceptions like FooServiceClientException for network related errors or ...
1vote
3answers
678views
Should a file reader library API throw exceptions?
I am developing a (Java) library providing an API to read a file in a specific format into an object. The format is basically a map, and specifies valid values for some of the keys, and valid types ...